package com;

public class ArrayUtils{
//    工具类构造私有，不让外界new
    private ArrayUtils(){
        
    }
    public static int findindexbyid(student[] students,int id,int count){
//        遍历查找
        for (int i = 0; i < count; i++) {
            if (id==students[i].getId()){
                return i;
        }            
        }
        return -1;
    }
}
